const app = getApp()
Page({
  onLoad(options) {
    this.setData({
      zh:options.zh,
      remark:options.remark
    })
  },
  data: {
    theme: 'light',
    result:''
  },
  login() {
    const that = this
    wx.login({
      success(e) {
        app.globalData.hasLogin = true
        that.setData({
          hasLogin: true,
          result:e
        })
      }
    })
  },
  checkSession(){
    wx.checkSession({
      complete:(e)=>{
        this.setData({
          result:e
        })
      }
    })
  }
})
